cups: Fix cast warnings
authorBenjamin Otte <otte@redhat.com>
Mon, 12 Jul 2010 12:40:04 +0000 (14:40 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 26 Jul 2010 14:42:46 +0000 (16:42 +0200)
modules/printbackends/cups/gtkprintbackendcups.c

index 11616186ff674c560d76c73199c1967c1daa0213..9d3a1eb66a35c8ce76eaaa50645e30eba5ef9acb 100644 (file)
@@ -963,7 +963,7 @@ check_auth_info (gpointer user_data)
                                             "auth-info",
                                             length,
                                             NULL,
-                                            dispatch->request->auth_info);
+                                            (const char * const *) dispatch->request->auth_info);
 
           g_source_attach ((GSource *) dispatch, NULL);
           g_source_unref ((GSource *) dispatch);
@@ -1248,7 +1248,7 @@ cups_request_execute (GtkPrintBackendCups              *print_backend,
 
   dispatch = (GtkPrintCupsDispatchWatch *) g_source_new (&_cups_dispatch_watch_funcs, 
                                                          sizeof (GtkPrintCupsDispatchWatch));
-  g_source_set_name (dispatch, "GTK+ CUPS backend");
+  g_source_set_name (&dispatch->source, "GTK+ CUPS backend");
 
   GTK_NOTE (PRINTING,
             g_print ("CUPS Backend: %s <source %p> - Executing cups request on server '%s' and resource '%s'\n", G_STRFUNC, dispatch, request->server, request->resource));